package com.xy;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/6/18 15:19
 * @description
 */
public class CurrentConditions {
    // 温度、气压、适度
    private float temperature;
    private float pressure;
    private float humidity;

    // 更新天气情况，使用推送
    public void update(float temperature, float pressure, float humidity) {
        this.temperature = temperature;
        this.pressure = pressure;
        this.humidity = humidity;
        display();
    }

    //显示
    public void display() {
        System.out.println("***Today mTemperature: " + temperature + "***");
        System.out.println("***Today mPressure: " + pressure + "***");
        System.out.println("***Today mHumidity: " + humidity + "***");
    }



}
